package receiver;

import static com.qb.devserv.MainService.mService;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.qb.devserv.MainActivity;

import utils.DevInfoUtil;
import utils.MyUtil;

public class BootReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        MyUtil.showLog("BootReceiver", "BroadcastReceiver");
        Intent activity = new Intent(context, MainActivity.class);
        activity.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        activity.putExtra("MainFlag","ONLY_SERVICE");
        context.startActivity(activity);
    }
}
